package com.glens.jksdxz.adapter;

import android.content.Context;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.glens.jksdxz.R;
import com.zhiteng.base.adapter.CustomAdapter;

import java.util.List;

import butterknife.BindView;

public class ListItemAdapter extends CustomAdapter {

    public ListItemAdapter(Context context, List<?> list, int layoutId) {
        super(context, list, layoutId);
    }

    @Override
    protected void setViewOnData(Object bean, BaseViewHolder baseViewHolder) {

        ViewHolder viewHolder = (ViewHolder) baseViewHolder;
        viewHolder.textView.setText((String) bean+"");
    }

    @Override
    protected BaseViewHolder getViewHolder() {
        return new ViewHolder();
    }


    class ViewHolder extends BaseViewHolder {
        @BindView(R.id.tex1)
        TextView textView;


    }

}
